package com.xuetang9.t9.xinhuaxia.service;

import com.github.pagehelper.PageInfo;
import com.xuetang9.t9.xinhuaxia.beans.User;

import java.util.List;

/**
 * @author 李亚奇
 * @version 1.0
 * @desc TODO
 * @date 2020/2/26 10:04
 * @copyright liyq
 * @address 成都西部国际金融中心2栋2201
 **/
public interface IUserService {

    boolean insertUser(User user);

    boolean removeUser(Long userId);

    boolean updateUser(User user);

    User queryById(Long userId);

   User login(String username, String password);
    
    PageInfo<User> queryByPage(int currentPage, int perPageSize);

    boolean queryByUserName(User user);
}
